package com.ruoyix.flowable.domain.bo;

import com.ruoyix.common.core.validate.AddGroup;
import com.ruoyix.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyix.common.core.domain.BaseEntity;

/**
 * 流程实例业务对象 bpm_process_instance
 *
 * @author ruoyi
 * @date 2023-11-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BpmProcessInstanceBo extends BaseEntity {

    /**
     * 流程实例id
     */
    @NotBlank(message = "流程实例id不能为空", groups = { EditGroup.class })
    private String processInstanceId;

    /**
     * 流程定义名称
     */
    private String processInstanceName;

    /**
     * 流程定义key
     */
    private String processDefinitionKey;

    /**
     * 流程定义版本
     */
    private Long processDefinitionVersion;

    /**
     * 流程发起人ID
     */
    private String startUserId;

    /**
     * 流程发起人
     */
    private String startUserNickName;

    /**
     * 流程状态 挂起或激活
     */
    private String processInstanceState;

    /**
     * 流程关联的业务id
     */
    private String businessKey;

    /**
     * 流程启动时间
     */
    private Date startTime;

    /**
     * 当前办理人
     */
    private String currAssignee;

    /**
     * 当前办理人ID
     */
    private String currAssigneeId;

    /**
     * 流程状态
     */
    private String processInstanceStatus;



}
